#contain {
    width: 200px;
    height: 50px;
    position: absolute;
    top: calc(50% + 50px);
    left: calc(50% + 50px);
    opacity: 0;
    animation: fadeIn 1s 1;
    animation-fill-mode: forwards;
}

.resize {
    resize: none;
}

.wrap {
    animation: translateX 1000ms infinite ease-in-out alternate;
    position: absolute;
}

.ball {
    width: 50px;
    height: 50px;
    box-shadow: -6.25px -6.25px 0 rgba(0, 0, 0, 0.1) inset;
    background-color: #397BF9;
    border-radius: 50%;
    animation: translateY 500ms infinite ease-in-out alternate;
}

.wrap:after {
    content: '';
    width: 50px;
    height: 7.5px;
    background: #eee;
    position: absolute;
    bottom: 0;
    top: 70px;
    border-radius: 50%;
    animation: scale 500ms infinite ease-in-out alternate;
}

#wrap2,
#ball2,
#wrap2:after {
    animation-delay: -400ms;
}

#wrap3,
#ball3,
#wrap3:after {
    animation-delay: -800ms;
}

#wrap4,
#ball4,
#wrap4:after {
    animation-delay: -1200ms;
}

#wrap5,
#ball5,
#wrap5:after {
    animation-delay: -1600ms;
}

#ball2 {
    background-color: #F4B400;
}

#ball3 {
    background-color: #EEEEEE;
}

#ball4 {
    background-color: #00A656;
}

#ball5 {
    background-color: #E3746B;
}

@keyframes translateX {
    100% {
        transform: translateX(-150px);
    }
}

@keyframes translateY {
    100% {
        transform: translateY(-187.5px);
    }
}

@keyframes scale {
    100% {
        transform: scale(0.85);
    }
}

@keyframes fadeIn {
    100% {
        opacity: 1;
    }
}
